package com.auth.service.api;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author:RenPu
 * @Date: 2020/10/28 18:47
 * @Version: 1.0
 * @description: jwt服务鉴权所需要的实体类
 */

public class Account implements Serializable {

    //用户名称
    private String username;

    //token值
    private String token;

    //刷新的token值
    private String refreshtoken;

    public Account(String username, String token, String refreshtoken) {
        this.username = username;
        this.token = token;
        this.refreshtoken = refreshtoken;
    }

    public Account() {
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRefreshtoken() {
        return refreshtoken;
    }

    public void setRefreshtoken(String refreshtoken) {
        this.refreshtoken = refreshtoken;
    }

    @Override
    public String toString() {
        return "Account{" +
                "username='" + username + '\'' +
                ", token='" + token + '\'' +
                ", refreshtoken='" + refreshtoken + '\'' +
                '}';
    }
}
